from rest_framework import serializers

from good.models import *


class GoodsBackendSerializer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'


class GoodsCategorySerializer(serializers.ModelSerializer):

    class Meta:
        model = GoodsCategory
        exclude = ('is_deleted','create_time','update_time')

